package com.hzau.tourist_service_sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzau.tourist_service_sys.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao extends BaseMapper<User> {
    @Select("select user_id from user where user_name=#{username}")
    public User findByName(String username);
    @Select("select user_id from user where phone_number=#{phoneNumber}")
    public User findByPhoneNumBer(String phoneNumber);
    @Select("select user_id from user where id_card=#{idCard}")
    public User findByIdCard(String idCard);

}
